SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}Aachen{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCity = 'Aachen' OR prZip = 'Aachen' OR prStreet LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}Aachen{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCountry = 'Aachen') AND (prLocation LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}/{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}/{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCountry = '/') AND (prLocation LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}Schleckheim{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCity = 'Schleckheim' OR prZip = 'Schleckheim' OR prStreet LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}Schleckheim{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCountry = 'Schleckheim') AND (prLocation LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}Germany{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}Germany{791995a137bd2eb0639cb6d4e6b3124125c0636fd9f548eb1ae82d3e708fc8d7}' OR prCountry = 'Germany')